﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared/Admin.master" AutoEventWireup="true" CodeFile="KhachHang.aspx.cs" Inherits="Admin_KhachHang" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<div class="formBox" align="left">
<h2>Danh sách khách hàng</h2>
    <p align="right">Họ tên:&nbsp;
        <asp:TextBox ID="txtHoTen" runat="server"></asp:TextBox>
    </p>
    <p align="right">Số điện thoại:&nbsp;
        <asp:TextBox ID="txtSDT" runat="server"></asp:TextBox>
    </p>
    <p>
       <asp:ImageButton ID="ImageButton1" runat="server" 
            ImageUrl="~/Images/qSearch.png"  />
    </p>
    <p>
        <span style="color:Blue;font-weight:bold;"><input id="MainContent_chkOnline" type="checkbox" name="ctl00$MainContent$chkOnline" onclick="javascript:setTimeout('__doPostBack(\'ctl00$MainContent$chkOnline\',\'\')', 0)"></span>
&nbsp;Khách hàng đang online
                </p>




    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        CellPadding="2" DataKeyNames="KhachHangID" 
        DataSourceID="EntityDataSource1" BackColor="LightGoldenrodYellow" 
        BorderColor="Tan" BorderWidth="1px" ForeColor="Black" GridLines="None" 
        onrowdeleting="GridView1_RowDeleting" >
       <AlternatingRowStyle BackColor="PaleGoldenrod" />
        <Columns>
            <asp:BoundField DataField="KhachHangID" HeaderText="ID" ReadOnly="True" 
                SortExpression="KhachHangID" />
            <asp:BoundField DataField="HoTen" HeaderText="Họ tên" SortExpression="HoTen" />
            <asp:BoundField DataField="TenDangNhap" HeaderText="Tên đăng nhập" 
                SortExpression="TenDangNhap" />
            <asp:BoundField DataField="MatKhau" HeaderText="Mật khẩu" 
                SortExpression="MatKhau" />
            <asp:CheckBoxField DataField="GioiTinh" HeaderText="Giới tính" 
                SortExpression="GioiTinh" />
            <asp:BoundField DataField="DienThoai" HeaderText="Điện thoại" 
                SortExpression="DienThoai" />
            <asp:BoundField DataField="DiaChi" HeaderText="Địa chỉ" 
                SortExpression="DiaChi" />
            <asp:BoundField DataField="NgaySinh" HeaderText="Ngày sinh" 
                SortExpression="NgaySinh" />
            <asp:CommandField HeaderText="Chức năng" ShowDeleteButton="True" />
        </Columns>
        <FooterStyle BackColor="Tan" />
        <HeaderStyle BackColor="Tan" Font-Bold="True" />
        <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" 
            HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
        <SortedAscendingCellStyle BackColor="#FAFAE7" />
        <SortedAscendingHeaderStyle BackColor="#DAC09E" />
        <SortedDescendingCellStyle BackColor="#E1DB9C" />
        <SortedDescendingHeaderStyle BackColor="#C2A47B" />
    </asp:GridView>
    <asp:EntityDataSource ID="EntityDataSource1" runat="server" 
        ConnectionString="name=EDiamondEntities1" 
        DefaultContainerName="EDiamondEntities1" EnableFlattening="False" 
        EntitySetName="KhachHangs">
    </asp:EntityDataSource>




    <br />

</div>


</asp:Content>

